package cn.dengta.webapp.trade.model;

import cn.dengta.common.model.ValueProxy;
import cn.dengta.context.model.LabelI18nProxy;
import cn.dengta.context.model.TradeI18nKey;
import lombok.Getter;

@Getter
public enum GoddessEquityType implements LabelI18nProxy<GoddessEquityType, Integer> {
	HOT(1, TradeI18nKey.GODDESS_HOT),
	GODDESS_MEDAL(2, TradeI18nKey.GODDESS_MEDAL),
	FREE_GREET(3, TradeI18nKey.GODDESS_FREE_GREET),
	SUPER_REC(4, TradeI18nKey.GODDESS_SUPER_REC),
	MORE_MATCH(5, TradeI18nKey.GODDESS_MORE_MATCH),
	;

	final ValueProxy<GoddessEquityType, Integer> proxy;


	GoddessEquityType(Integer value, String label) {
		this.proxy = new ValueProxy<>(this, value, label);
	}

	@Override
	public ValueProxy<GoddessEquityType, Integer> getProxy() {
		return proxy;
	}

	public static GoddessEquityType of(Integer type) {
		return HOT.getValueOf(type);
	}
}
